
add_executable(fs_dir dir.cpp)
target_link_libraries(fs_dir ghc_filesystem)
if(CMAKE_CXX_COMPILER_ID MATCHES MSVC)
    target_compile_definitions(fs_dir PRIVATE _CRT_SECURE_NO_WARNINGS)
endif()
AddExecutableWithStdFS(std_fs_dir dir.cpp)

add_executable(fs_du du.cpp)
target_link_libraries(fs_du ghc_filesystem)
AddExecutableWithStdFS(std_fs_du du.cpp)

if(EXISTS "${PROJECT_SOURCE_DIR}/examples/benchmark.cpp")
    add_executable(fs_benchmark benchmark.cpp)
    set_property(TARGET fs_benchmark PROPERTY CXX_STANDARD 17)
    target_link_libraries(fs_benchmark ghc_filesystem)
endif()